package com.djinfo.work.dao;

import com.djinfo.work.entity.Department;

import java.util.List;

/**
 * Created by lenovo on 2017/5/17.
 */
public interface DepartmentDao {
    public void save(Department object);
    public void update(Department object);
    public void delete(Department object);
    public Department getDepartmentById(String id);
    public List<Department> page(Department object, Integer pageNum, Integer pageSize);
    public List<Department> list();
    public Integer getAllRowCount(Department department);
    public  List<Department> getDepartsBy(String parentid);

    public List<Department> getTwoDepartid();

    public List<Department> getOneDepartid();

    public List<Department> setTwoToOne(String deptid);

    public List<Department> getLevel1DepartList();
    public List<Department> getLevel2DepartList();

    public void deleteChildByParentDepartId(String pid);

    public List<Department> getDeptListByParentId(String pid);

}
